package com.dao.impl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.dao.ITabThesecondinstallationcommissionDao;
import com.po.TabThesecondinstallationcommission;

public class TabThesecondinstallationcommissionDao extends SqlMapClientDaoSupport
		implements ITabThesecondinstallationcommissionDao
{

	public Integer deleteObejct(TabThesecondinstallationcommission tabThesecondinstallationcommission)
	{
		// TODO Auto-generated method stub
		return getSqlMapClientTemplate().delete(
				"TabThesecondinstallationcommission.deleteById", tabThesecondinstallationcommission);
	}

	public Integer findByCount(TabThesecondinstallationcommission tabThesecondinstallationcommission)
	{
		// TODO Auto-generated method stub
		return (Integer) getSqlMapClientTemplate().queryForObject(
				"TabThesecondinstallationcommission.deleteById", tabThesecondinstallationcommission);
	}

	public List<TabThesecondinstallationcommission> findById(
			TabThesecondinstallationcommission tabThesecondinstallationcommission)
	{
		// TODO Auto-generated method stub
		return (List<TabThesecondinstallationcommission>) getSqlMapClientTemplate()
				.queryForList("TabThesecondinstallationcommission.findById",
						tabThesecondinstallationcommission);
	}

	public List<TabThesecondinstallationcommission> findByList(
			TabThesecondinstallationcommission tabThesecondinstallationcommission)
	{
		// TODO Auto-generated method stub
		return (List<TabThesecondinstallationcommission>)getSqlMapClientTemplate().queryForList("TabThesecondinstallationcommission.findByList",tabThesecondinstallationcommission);
	}

	public Integer saveObject(TabThesecondinstallationcommission tabThesecondinstallationcommission)
	{
		// TODO Auto-generated method stub
		return (Integer) getSqlMapClientTemplate().insert("TabThesecondinstallationcommission.save",tabThesecondinstallationcommission);
	}

	public Integer updateObject(TabThesecondinstallationcommission tabThesecondinstallationcommission)
	{
		// TODO Auto-generated method stub
		return (Integer) getSqlMapClientTemplate().update("TabThesecondinstallationcommission.updateById",tabThesecondinstallationcommission);
	}

	
}
